package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Description:
 * User: 故我
 * Date: 2023-11-16
 * Time: 22:48
 */
@Data
public class Comment {
    private int cid;//评论的id
    private int aid;//评论的文章ID
    private int uid;//评论者的ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime ctime;//评论的时间
    private String content;//评论的内容
    private String ip;//评论者的ip地址
}
